result = [1, 1]
n = 2

while True:
    if result[-1] >= 100:
        result.pop()
        break
    result.append(result[n - 1] + result[n - 2])
    n+=1
print('100以内的斐波那契数列为:')
for i in result:
    if i == result[-1]:
        print(i)
        break
    print(i, end=",")
